Skip to content

Commit

Permalink
docs: ✏️ perf docs text
Browse files Browse the repository at this point in the history
  • Loading branch information
Josper committed May 7, 2024
1 parent c8d26a1 commit c9fefe8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/guide/advance/set-default-headers.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const http = new HttpService([
const { method, headers } = ctx.request
// 如果是post请求
if (method === 'POST') {
const key = 'Content-Type' // app 安卓端 jsbridge 只认这个headers key,用这个保险
const key = 'Content-Type'
ctx.request.headers = {
// assign
...(headers || {}),
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/interface-service.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ httpSvc.request(fetchConfig)
interface IFetchConfig {
url: string
/**
* base URL(host) like '//api.bilibili.com'
* base URL(host) like '//api.domain.com'
*/
baseURL?: FetchBaseURL
/**
Expand Down

0 comments on commit c9fefe8

Please sign in to comment.