cybertk / cybertk/abao

multipart/form-data request not sending content-type header

Open
#33 7 comments 0 reactions 0 assignees View on GitHub
feature request
Dominant language
CoffeeScript
Stars
352
Forks
57
PR merge metrics
No merged PRs in 30d

Description

I'm trying to test a multipart/form-data endpoint but it seems as though the content-type header isn't being sent when I run abao.

Raml snippet:

```
/stuff:
put:
body:
multipart/form-data:
formParameters:
name:
description: The name of the stuff
required: true
type: string
example: My_Stuff
image:
description: A picture of the stuff
required: true
type: file
responses:
201:
body:
application/json:
```

If I change `multipart/form-data` to `application/json` I can see the request getting further (but then fails because the required input isn't passed... as expected)

Thoughts?

Thanks
Kimo

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.