Skip to content
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

HTTP Upload headers not used #274

Open
Zash opened this issue Jan 29, 2021 · 0 comments
Open

HTTP Upload headers not used #274

Zash opened this issue Jan 29, 2021 · 0 comments
Labels
frontend xep related to implementing a XEP

Comments

@Zash
Copy link

Zash commented Jan 29, 2021

  • yaxim 0.9.9a-4-g e27e415
  • XEP-0363 implementation utilizing <header>
C:
<iq to='share.example.net' id='y6mO8-120' type='get'>
  <request xmlns='urn:xmpp:http:upload:0' filename='IMG_20210129_012916.jpg' size='199871' content-type='image/jpeg'/>
</iq>

S:
<iq id="y6mO8-120" to="[email protected]/yaxim.859C45FD" type="result" from="share.example.net">
  <slot xmlns="urn:xmpp:http:upload:0">
    <get url="https://share.example.net/file_share/o35x3G_omPCeWzZw/IMG_20210129_012916.jpg"/>
    <put url="https://share.example.net/file_share/o35x3G_omPCeWzZw/IMG_20210129_012916.jpg">
      <header name="Authorization">Bearer u3y6RZrNvRAkgKZT_Yge</header>
    </put>
  </slot>
</iq>

On upload the HTTP PUT request is missing the Authorization header.

Support for headers is mandatory

[...] the client MUST include all allowed headers that came with the slot assignment.

@Echolon Echolon added frontend xep related to implementing a XEP labels Feb 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
frontend xep related to implementing a XEP
Projects
None yet
Development

No branches or pull requests

2 participants