Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/env-and-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,13 +141,13 @@ Every outbound research request carries a `User-Agent` header, set on the resear
The default header (no override) is:

```
User-Agent: Vice/<version> (+https://lab.freya.cintile.io/atelier/vice)
User-Agent: Vice/<version> (+https://github.com/jrconradt/Vice)
```

When `VICE_CONTACT_EMAIL` is set, the default becomes:

```
User-Agent: Vice/<version> (+https://lab.freya.cintile.io/atelier/vice; mailto:<email>)
User-Agent: Vice/<version> (+https://github.com/jrconradt/Vice; mailto:<email>)
```

Setting `VICE_CONTACT_EMAIL` discloses that address to every research host in the `User-Agent` header of every request. The address is personal data sent to third parties; leave the variable unset if you do not want it transmitted. The email is never placed in query strings or request bodies.
Expand Down
2 changes: 1 addition & 1 deletion src/Vice.Research/ResearchHttp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ internal static class ResearchHttp

public const string ContactEmailEnvVar = "VICE_CONTACT_EMAIL";

private const string ProjectUrl = "https://lab.freya.cintile.io/atelier/vice";
private const string ProjectUrl = "https://github.com/jrconradt/Vice";

private const long MaxResponseContentBufferBytes = 8L * 1024 * 1024;

Expand Down
2 changes: 1 addition & 1 deletion tests/Vice.Net.Tests/ResearchAndInsecurePolicyTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public void Default_user_agent_carries_project_url_and_no_placeholder_repo()
var ua = ResearchHttp.ResolveUserAgent();

Assert.StartsWith("Vice/", ua);
Assert.Contains("lab.freya.cintile.io/atelier/vice", ua);
Assert.Contains("github.com/jrconradt/Vice", ua);
Assert.DoesNotContain("github.com/vice-cli", ua);
}
finally
Expand Down
Loading