mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Add cmd line option to set user agent. Improves github when used.
This commit is contained in:
parent
76d1d78cc0
commit
dc1d66d3ce
3 changed files with 17 additions and 7 deletions
|
@ -110,7 +110,7 @@ pub fn run(opts: opts::Opts) {
|
|||
.spawn(proc() {
|
||||
let opts = &opts_clone;
|
||||
// Create a Servo instance.
|
||||
let resource_task = new_resource_task();
|
||||
let resource_task = new_resource_task(opts.user_agent.clone());
|
||||
// If we are emitting an output file, then we need to block on
|
||||
// image load or we risk emitting an output file missing the
|
||||
// image.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue