aboutsummaryrefslogtreecommitdiff
path: root/strings.go
diff options
context:
space:
mode:
authorGravatar MoreFreeze <morefreeze@users.noreply.github.com> 2021-05-17 15:20:18 +0800
committerGravatar GitHub <noreply@github.com> 2021-05-17 09:20:18 +0200
commitffa0cabed8199819e372ebd2c739998914150ff2 (patch)
tree287ed33be99cee824e6c2eaebf3dfa7ab5e93c4f /strings.go
parentfeature: add ConvertRequest func (#1024) (diff)
downloadfasthttp-ffa0cabed8199819e372ebd2c739998914150ff2.tar.gz
fasthttp-ffa0cabed8199819e372ebd2c739998914150ff2.tar.bz2
fasthttp-ffa0cabed8199819e372ebd2c739998914150ff2.zip
Use proper content-type when it is not present (#1023)
Co-authored-by: liuchenxing <liuchenxing@bytedance.com>
Diffstat (limited to 'strings.go')
-rw-r--r--strings.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/strings.go b/strings.go
index e244f84..2a3d553 100644
--- a/strings.go
+++ b/strings.go
@@ -77,6 +77,7 @@ var (
strIdentity = []byte("identity")
str100Continue = []byte("100-continue")
strPostArgsContentType = []byte("application/x-www-form-urlencoded")
+ strDefaultContentType = []byte("application/octet-stream")
strMultipartFormData = []byte("multipart/form-data")
strBoundary = []byte("boundary")
strBytes = []byte("bytes")