Comments (5)
If we use Body
or BodyString
method to make 1:n key-value pair, we need define the proper Content-Type header representing the real content MIME type.
from gentleman.
Clearly, this is an interface limitation. It should be map[string][]string
, such as url.Values
:
https://golang.org/pkg/net/url/#Values
If you want a fast fix, would you mind providing a PR? I will merge it asap!
from gentleman.
I'm still reviewing and testing the code. I will try to contribute code later.
from gentleman.
I had a few time tonight to fix this. See: b8321b8
The fix will be shipped in [email protected]
soon.
from gentleman.
Fix was shipped in [email protected]
. You can upgrade it running:
go get -u gopkg.in/h2non/gentleman.v1
from gentleman.
Related Issues (20)
- client.URL or client.BaseURL undefined behavior
- Please add method to remove headers from a request HOT 1
- Add a String() method to Request HOT 2
- Tracking what is done by a stack of plugins is hard
- Support standard rfc6570 URL Template syntax and replacement
- Issue with escaping parameters
- Issue pulling as a Go Module HOT 7
- Enhance redirect plugin to allow for trusted hosts HOT 2
- How to disable redirect
- http/1.1 and http/2 HOT 1
- The checksum on sum.golang.org is incorrect
- Default gentleman use doesn't seem to participate in TLS session resumption
- Making HTTP requests via CloudFlare
- gentleman/proxy error in example and code
- While using mutlipart form-data I am not able to set fieldName diff from fileName HOT 1
- GetBody() the Method in Golang is not define in gentleman.
- The expression data pass is empty
- Is Gentleman client thread safe? HOT 1
- the example for timeout is ambiguity
- Alerts for too many middlewares
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gentleman.