Skip to content

Commit

Permalink
save headers for all intermediate redirects (#2677)
Browse files Browse the repository at this point in the history
  • Loading branch information
bartlomieju authored and ry committed Jul 22, 2019
1 parent 9c22961 commit 70de8dd
Show file tree
Hide file tree
Showing 4 changed files with 241 additions and 233 deletions.
3 changes: 0 additions & 3 deletions cli/compiler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,6 @@ impl TsCompiler {

let compiled_module = SourceFile {
url: source_file.url.clone(),
redirect_source_url: None,
filename: compiled_code_filename,
media_type: msg::MediaType::JavaScript,
source_code: compiled_code,
Expand Down Expand Up @@ -515,7 +514,6 @@ impl TsCompiler {

let source_map_file = SourceFile {
url: module_specifier.as_url().to_owned(),
redirect_source_url: None,
filename: source_map_filename,
media_type: msg::MediaType::JavaScript,
source_code,
Expand Down Expand Up @@ -634,7 +632,6 @@ mod tests {

let mut out = SourceFile {
url: specifier.as_url().clone(),
redirect_source_url: None,
filename: PathBuf::from("/tests/002_hello.ts"),
media_type: msg::MediaType::TypeScript,
source_code: include_bytes!("../tests/002_hello.ts").to_vec(),
Expand Down
Loading

0 comments on commit 70de8dd

Please sign in to comment.