- 
                Notifications
    
You must be signed in to change notification settings  - Fork 48
 
Urlscm: add support for custom headers #655
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Some servers need additional informations provided by custom headers. Add a `headers` attribute where the user can set these custom headers.
| 
           I think we do not need the   | 
    
          Codecov Report❌ Patch coverage is  
 Additional details and impacted files@@           Coverage Diff           @@
##           master     #655   +/-   ##
=======================================
  Coverage   88.97%   88.97%           
=======================================
  Files          50       50           
  Lines       16116    16124    +8     
=======================================
+ Hits        14339    14347    +8     
  Misses       1777     1777           ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
  | 
    
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should apply the headers in _uploadtoo.
Co-authored-by: Jan Klötzke <[email protected]>
          
 🤔  AFAICS  My use-case is to send a authorization header. I don't want to send this to any mirror, so I think headers should be used only for the scm where they are defined (which is not the case ATM). OTOH mirrors (up&download) might also need some custom headers, but in this case we'd need to extend the mirror keyword?  | 
    
          
 You're completely right. Any headers for the upload need to come from the mirror definition. 
 I agree. If there is a   | 
    
| 
           Thanks.  | 
    
Some servers need additional informations provided by custom headers.
Add a
headersattribute where the user can set these custom headers.