Skip to content
Snippets Groups Projects
  1. Nov 15, 2023
  2. Apr 26, 2022
  3. Apr 25, 2022
  4. Apr 23, 2022
  5. Apr 06, 2022
  6. Mar 30, 2022
  7. Aug 08, 2021
  8. Jul 15, 2021
  9. Jul 09, 2021
  10. Jun 18, 2021
  11. Jun 08, 2021
    • nOOb3167's avatar
      basic_streaming transfer adapter handling of 'filename' URL parameter · 8cacd3a4
      nOOb3167 authored
      'filter' the 'filename' URL parameter through 'safe_filename' IF it was actually sent with the request
      
      It seems this URL parameter is not always passed by clients.
      Out of my two setups, the windows based one does not, which led me to investigate.
          git version 2.31.1.windows.1 using ssh to clone a repository with lfs.url=http://...     - URL parameter not passed, hitting the failure mode mitigated by this PR
          git version 2.31.1 using a local file path to clone a repository with lfs.url=http://...   - Everything is fine
      I have not investigated yet whether the URL parameter passing differences are by design or by accident, however it seems prudent for the transfer adapter to cleanly handle this case.
      8cacd3a4
  12. Jun 02, 2021
  13. May 14, 2021
  14. May 13, 2021
    • amercader's avatar
      Whatever Flake8 · 71d9e826
      amercader authored
      71d9e826
    • amercader's avatar
      Support defining Content-disposition header · 3b211fe3
      amercader authored
      Sometimes when requesting a file from Giftless we don't want it to
      receive it as an attachment, eg when loading it in a browser JS widget
      or embedding it. This change adds support for a `x-disposition` extra
      which storage backends can use to set the appropiate headers when
      returning a download URL.
      3b211fe3
  15. May 05, 2021
  16. Apr 25, 2021
  17. Apr 23, 2021
    • amercader's avatar
      Provide mime type when uploading blobs to Azure · e7b1a380
      amercader authored
      This is currently inferred from the filename using `mimetypes`
      e7b1a380
    • amercader's avatar
      Add basic mime type detection · fdec3290
      amercader authored
      Added new `get_mime_type()` method to `StreamingStorage` so that
      different backends can implement it. For local storage we use the
      builitin `mimetypes` module to guess the mime type from the filename,
      for Azure we get it from the blob properties.
      
      In the basic streaming transfer handler we read the value of this method
      and add it to the `Content-type` header.
      fdec3290
  18. Apr 22, 2021
  19. Apr 21, 2021
  20. Mar 30, 2021
  21. Mar 26, 2021
  22. Mar 22, 2021
  23. Mar 20, 2021
  24. Mar 15, 2021