1. 10 Feb, 2018 1 commit
    • http: standardize user-agent addition · ee6be190
      The winhttp and posix http each need to add the user-agent to their
      requests.  Standardize on a single function to include this so that we
      do not get the version numbers we're sending out of sync.
      
      Assemble the complete user agent in `git_http__user_agent`, returning
      assembled strings.
      
      Co-authored-by: Patrick Steinhardt <ps@pks.im>
      Edward Thomson committed
  2. 23 Oct, 2017 1 commit
  3. 03 Jul, 2017 1 commit
    • Make sure to always include "common.h" first · 0c7f49dd
      Next to including several files, our "common.h" header also declares
      various macros which are then used throughout the project. As such, we
      have to make sure to always include this file first in all
      implementation files. Otherwise, we might encounter problems or even
      silent behavioural differences due to macros or defines not being
      defined as they should be. So in fact, our header and implementation
      files should make sure to always include "common.h" first.
      
      This commit does so by establishing a common include pattern. Header
      files inside of "src" will now always include "common.h" as its first
      other file, separated by a newline from all the other includes to make
      it stand out as special. There are two cases for the implementation
      files. If they do have a matching header file, they will always include
      this one first, leading to "common.h" being transitively included as
      first file. If they do not have a matching header file, they instead
      include "common.h" as first file themselves.
      
      This fixes the outlined problems and will become our standard practice
      for header and source files inside of the "src/" from now on.
      Patrick Steinhardt committed
  4. 27 Jan, 2017 1 commit
  5. 06 Jan, 2017 1 commit
  6. 29 Dec, 2016 1 commit
  7. 20 Dec, 2016 1 commit
    • http: bump the pretend git version in the User-Agent · fafafb1f
      We want to keep the git UA in order for services to recognise that we're
      a Git client and not a browser. But in order to stop dumb HTTP some
      services have blocked UAs that claim to be pre-1.6.6 git.
      
      Thread these needles by using the "git/2.0" prefix which is still close
      enough to git's yet distinct enough that you can tell it's us.
      Carlos Martín Nieto committed
  8. 17 Aug, 2016 2 commits
  9. 06 Jul, 2016 1 commit
  10. 19 Jun, 2016 1 commit
  11. 19 Apr, 2016 2 commits
  12. 12 Nov, 2015 1 commit
  13. 25 Sep, 2015 1 commit
  14. 10 Sep, 2015 1 commit
  15. 08 Sep, 2015 2 commits
  16. 04 Sep, 2015 4 commits
  17. 15 Aug, 2015 1 commit
    • http: propagate the credentials callback's error code · 11bca2d2
      When we ask for credentials, the user may choose to return EUSER to
      indicate that an error has happened on its end and it wants to be given
      back control.
      
      We must therefore pass that back to the user instead of mentioning that
      it was on_headers_complete() that returned an error code. Since we can,
      we return the exact error code from the user (other than PASSTHROUGH)
      since it doesn't cost anything, though using other error codes aren't
      recommended.
      Carlos Martín Nieto committed
  18. 29 Jul, 2015 1 commit
  19. 12 Jul, 2015 1 commit
  20. 30 Jun, 2015 1 commit
  21. 29 Jun, 2015 1 commit
  22. 24 Jun, 2015 4 commits
  23. 11 May, 2015 1 commit
  24. 23 Apr, 2015 3 commits
  25. 18 Mar, 2015 1 commit
  26. 16 Mar, 2015 1 commit
  27. 03 Mar, 2015 1 commit
  28. 10 Dec, 2014 2 commits