gentle-force-bundle icon indicating copy to clipboard operation
gentle-force-bundle copied to clipboard

The wait_for_header setting return a float instead of an integer

Open galphanet opened this issue 4 years ago • 0 comments

When setting the wait_for_header, the result is in the form of a float (for example: 3247.4306001663)

When we set wait_for_header: 'Retry-After', the Retry-After should be an integer (see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Retry-After)

The problem is that the getWaitForInSeconds() function returns the float. The proposed fix is to round() the result of the getWaitForInSeconds() function in the HeaderStrategy.

galphanet avatar Mar 12 '20 14:03 galphanet