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

Ticket 1307 #447

Merged
merged 5 commits into from
Jan 5, 2018
Merged

Ticket 1307 #447

merged 5 commits into from
Jan 5, 2018

Conversation

tpltnt
Copy link
Contributor

@tpltnt tpltnt commented Sep 25, 2017

Hi there,

this is a quick stab at ticket 1307 to add support for "HTTP OPTIONS" requests.

Cheers,
tpltnt

from allmydata import __version__
req = IRequest(ctx)
req.setHeader("server", "Tahoe-LAFS gateway v" + __version__)
methods = ', '.join([m[7:] for m in dir(self) if m.startswith('render_')])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we do this other places? I kind of think maybe we shouldn't stick the exact version in there (e.g. just "Tahoe-LAFS gateway")

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not that I am aware of. I removed it.

@meejah
Copy link
Contributor

meejah commented Sep 26, 2017

Looks good to me. Not sure if the appveyor failures are related to this; seems unlikely...

@tpltnt
Copy link
Contributor Author

tpltnt commented Oct 27, 2017

Is there anything left which is stalling a merge?

@meejah
Copy link
Contributor

meejah commented Dec 18, 2017

Hi, looking at this again. I think it looks fine, but I'd rather take out the "exact version" string personally. It might be worth re-basing it to master since there's been some changes there. There should be a devchat tomorrow and I'll put this on the agenda :)

@codecov-io
Copy link

codecov-io commented Dec 31, 2017

Codecov Report

Merging #447 into master will decrease coverage by 0.32%.
The diff coverage is 10%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #447      +/-   ##
==========================================
- Coverage   90.15%   89.83%   -0.33%     
==========================================
  Files         144      144              
  Lines       27297    27100     -197     
  Branches     3926     3893      -33     
==========================================
- Hits        24610    24344     -266     
- Misses       1947     2026      +79     
+ Partials      740      730      -10
Impacted Files Coverage Δ
src/allmydata/web/common.py 90.49% <10%> (-2.47%) ⬇️
src/allmydata/web/magic_folder.py 31.81% <0%> (-45.96%) ⬇️
src/allmydata/scripts/magic_folder_cli.py 52.76% <0%> (-16.8%) ⬇️
src/allmydata/web/root.py 86.41% <0%> (-3.01%) ⬇️
src/allmydata/util/rrefutil.py 66.66% <0%> (-2.3%) ⬇️
src/allmydata/frontends/magic_folder.py 83.85% <0%> (-2%) ⬇️
src/allmydata/scripts/tahoe_daemonize.py 85.41% <0%> (-1.43%) ⬇️
src/allmydata/immutable/upload.py 95.25% <0%> (-0.28%) ⬇️
src/allmydata/util/i2p_provider.py 95.53% <0%> (-0.23%) ⬇️
src/allmydata/web/status.py 82.86% <0%> (-0.23%) ⬇️
... and 17 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c351a1d...95acd57. Read the comment docs.

@tpltnt
Copy link
Contributor Author

tpltnt commented Dec 31, 2017

I removed the version string and synced with master.

@meejah meejah merged commit 187eb56 into tahoe-lafs:master Jan 5, 2018
@tpltnt tpltnt deleted the ticket-1307 branch January 5, 2018 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants