Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问go语言如何请求api接口?有示例吗? #98

Open
jigangqinnian opened this issue Nov 16, 2019 · 3 comments
Open

请问go语言如何请求api接口?有示例吗? #98

jigangqinnian opened this issue Nov 16, 2019 · 3 comments
Labels
bug Something isn't working

Comments

@jigangqinnian
Copy link

Question(提问)

请问go语言如何请求api接口?有示例吗?

@jigangqinnian
Copy link
Author

总是提示10005,看了代码应该是strings.HasPrefix(contentType, "image")这里过不去

@0xDkd
Copy link
Owner

0xDkd commented Dec 8, 2019

经过排查发现对于文件的 mime 与 content-Type 检测有问题,这一部分将重写,感谢反馈

@0xDkd 0xDkd added the bug Something isn't working label Dec 8, 2019
@freewebcode
Copy link

问题(提问)

请问go语言如何请求api接口?有示例吗?
$postData['image'] = new \CURLFile(realpath($newFileName),$file['type'],$file['name']);
我用php请求也有这个问题,但是已经解决了,需要自己添加mime $file['type']

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants