Skip to content
This repository was archived by the owner on Mar 18, 2019. It is now read-only.

Commit 47434a2

Browse files
committed
Simpler accept header style
1 parent 3a3b054 commit 47434a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coreapi/transports/http.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def _get_headers(url, decoders=None, credentials=None):
9696
if decoders is None:
9797
decoders = default_decoders
9898

99-
accept = ', '.join([decoder.media_type for decoder in decoders])
99+
accept = decoders[0].media_type + ', */*'
100100

101101
headers = {
102102
'accept': accept,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy