comparison roundup/rest.py @ 7173:5159d8ea585a

chore: flake8 formatting fixes
author John Rouillard <rouilj@ieee.org>
date Sun, 26 Feb 2023 10:34:56 -0500
parents 89f84f0d7cd3
children 886a5c767d7e
comparison
equal deleted inserted replaced
7172:e16b7d47fdb2 7173:5159d8ea585a
2211 # rate limiting (*RateLimit*, Retry-After) 2211 # rate limiting (*RateLimit*, Retry-After)
2212 # obsolete API endpoint (Sunset) 2212 # obsolete API endpoint (Sunset)
2213 # options request to discover supported methods (Allow) 2213 # options request to discover supported methods (Allow)
2214 self.client.setHeader( 2214 self.client.setHeader(
2215 "Access-Control-Expose-Headers", 2215 "Access-Control-Expose-Headers",
2216 ", ".join( [ 2216 ", ".join([
2217 "X-RateLimit-Limit", 2217 "X-RateLimit-Limit",
2218 "X-RateLimit-Remaining", 2218 "X-RateLimit-Remaining",
2219 "X-RateLimit-Reset", 2219 "X-RateLimit-Reset",
2220 "X-RateLimit-Limit-Period", 2220 "X-RateLimit-Limit-Period",
2221 "Retry-After", 2221 "Retry-After",
2222 "Sunset", 2222 "Sunset",
2223 "Allow", 2223 "Allow",
2224 ] ) 2224 ])
2225 ) 2225 )
2226 2226
2227 # Allow-Origin must match origin supplied by client. '*' doesn't 2227 # Allow-Origin must match origin supplied by client. '*' doesn't
2228 # work for authenticated requests. 2228 # work for authenticated requests.
2229 self.client.setHeader( 2229 self.client.setHeader(

Roundup Issue Tracker: http://roundup-tracker.org/