Honor supports_http_options: false by dropping them when found #162
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
As currently implemented, the
supports_http_options
flag has no useful impact.For notebooks and bokeh apps,
supports_http_options
defaults totrue
, which allows the code to translate these options to a form that these types of applications can understand. Overriding this default, and settingsupports_http_options
tofalse
, would break both of these apps. It would be better therefore if this option is not available for these cases.On the other hand, for scripts (e.g.,
windows
andunix
), the flag has no effect whatsoever. If the HTTP options are passed to ananaconda-project run
command, they are passed through unchanged, no matter what the value of this setting is.This simple PR solves the second case, but not the first. It causes
anaconda-project
to properly respect ansupports_http_options: false
setting for scripts, by stripping those options out before constructing the full shell command..