Giter Site home page Giter Site logo

Comments (3)

WaterLemons2k avatar WaterLemons2k commented on July 23, 2024

不用设置 Content-Type Header,会自动添加。

req.Header.Add("content-type", contentType)

from ddns-go.

XF2886 avatar XF2886 commented on July 23, 2024

不用设置 Content-Type Header,会自动添加。

req.Header.Add("content-type", contentType)

感谢 ! 看了一下源码 , contentType默认是application/x-www-form-urlencoded , 当RequestBody是JSON的时候会替换成application/json , 但是我不能自定义Content-Type吗 ? 例如Content-Type: text/markdown

另外我需要设置其他的也是不生效的 ? 例如 :

title:123
2024/03/18 13:47:48 Webhook Header不正确: Authorization:Bearer tk_xxx
title:123

from ddns-go.

WaterLemons2k avatar WaterLemons2k commented on July 23, 2024

但是我不能自定义Content-Type吗 ? 例如Content-Type: text/markdown

暂时不支持。

另外我需要设置其他的也是不生效的 ? 例如 :


title:123


2024/03/18 13:47:48 Webhook Header不正确: Authorization:Bearer tk_xxx

title:123

func checkParseHeaders(headerStr string) (headers map[string]string) {

看着输入没问题。应该是 checkParseHeaders 的问题,一会我看一下。

from ddns-go.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.