Skip to content

Commit

Permalink
use const for get
Browse files Browse the repository at this point in the history
  • Loading branch information
hedhyw committed Jan 23, 2023
1 parent b085f40 commit 79f3ffa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oembed/oembed.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ func (item *Item) FetchOembedWithContext(ctx context.Context, opts Options) (*In
resURL = fmt.Sprintf("%s&%s", resURL, opts.ExtraOpts.Encode())
}

req, err := http.NewRequestWithContext(ctx, "GET", resURL, nil)
req, err := http.NewRequestWithContext(ctx, http.MethodGet, resURL, nil)

if err != nil {
return nil, err
Expand Down

0 comments on commit 79f3ffa

Please sign in to comment.