A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/mirage/ocaml-github/commit/5bd877 below:

use Bearer in the authorization header to support bo… · mirage/ocaml-github@5bd8775 · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+1

-1

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+1

-1

lines changed Original file line number Diff line number Diff line change

@@ -877,7 +877,7 @@ module Make(Env : Github_s.Env)(Time : Github_s.Time)(CL : Cohttp_lwt.S.Client)

877 877

let headers = C.Header.add_opt headers "accept" media_type in

878 878

match token with

879 879

| None -> headers

880 -

| Some token -> C.Header.add headers "Authorization" ("token " ^ token)

880 +

| Some token -> C.Header.add headers "Authorization" ("Bearer " ^ token)

881 881 882 882

let idempotent meth

883 883

?(rate=Core) ?media_type ?headers ?token ?params ~fail_handlers ~expected_code ~uri

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4